package com.cn.wanxi.consumer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.wanxi.consumer.domain.entity.ThreadMsg;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @ClassName ThreadMapper
 * @Description 线程消息表接口代理
 * @Author JiJiang
 * @Date 2022/9/29 13:52
 * @Version 1.0
 */

@Mapper
public interface ThreadMsgMapper extends BaseMapper<ThreadMsg> {


    @Insert("insert into wx_thread_msg (id,publish_time,receive_time,import_time,msg) " +
            "values(null,#{publishTime},#{receiveTime},date_format(now(),'%Y-%m-%d %H:%i:%S'),#{msg})")
    int insertBySelf(ThreadMsg threadMsg);


}
